﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace EClinic
{
    public partial class PatientViewer : UserControl
    {
        public PatientViewer()
        {
            InitializeComponent();
        }

        private void PatientViewer_Load(object sender, EventArgs e)
        {
            radScrollablePanel1.BringToFront();
            
        }

        private void Page_Click(object sender, EventArgs e)
        {
           
        }

        private void Page_Resize(object sender, EventArgs e)
        {
            panel1.Width = Page.Width - ((5 * Page.Width) / 50);
           
            float _X = (5*Page.Width)/100;
            float _y = (3* Page.Height)/ 100;
            panel1.Location = new Point((int)(Page.Location.X + _X), (int)(Page.Location.Y+_y));
            panel1.Height = Page.Height - ((3 * Page.Height) / 50);
        }
    }
}
